/**
  * 描述：
  * @Author rocklee
  * @mail liruoke@163.com
  * @Date 2020/06/18 10:59:52
  */
import fetch from '@/utils/fetch'

const MallRegionApi = {
  getPageList (params) {
    return fetch({
      url: '/api/mallRegion/page',
      method: 'get',
      params: params
    })
  },
  getDetail (id) {
    return fetch({
      url: '/api/mallRegion/' + id,
      method: 'get'
    })
  },
  add (data) {
    return fetch({
      url: '/api/mallRegion',
      method: 'post',
      data: data
    })
  },
  update (id, data) {
    return fetch({
      url: '/api/mallRegion/' + id,
      method: 'put',
      data: data
    })
  },
  del (data) {
    return fetch({
      url: '/api/mallRegion',
      method: 'delete',
      data: data
    })
  }
}
export default MallRegionApi
